﻿@model IList<Entidad.Cliente>

@{
    ViewBag.Title = "Clientes Registrados";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>@ViewBag.Title</h2>

<div class="widget-body">
    <div>
        @using (Html.BeginForm("Crear", "Cliente", FormMethod.Get))
        {
            <div class="form-group">
                <div class="col-md-offset-2 col-md-10">
                    <input type="submit" value="Nuevo Cliente" class="btn btn-default" />
                </div>
            </div>
        }
    </div>
</div>

<div class="span12">
    <!-- BEGIN BASIC CHART PORTLET-->
    <div class="widget black">
        <div class="widget-title">
            <h4><i class="icon-group"></i> Clientes Registrados</h4>
            <span class="tools">
                <a href="javascript:;" class="icon-chevron-down"></a>
                <a href="javascript:;" class="icon-remove"></a>
            </span>
        </div>
        <div class="widget-body">

            @using (Html.BeginForm("FindByNombre", "Cliente", FormMethod.Post))
            {
                <p>
                    Nombre: @Html.TextBox("Nombre")
                    <input id="Filtrar" type="submit" value="Buscar Cliente" class="btn btn-info" />
                </p>


                <div id="grid-list">
                    @{ Html.RenderPartial("ListadoPartial", Model); }
                </div>

            }
        </div>
    </div>
    <!-- END BASIC CHART PORTLET-->
</div>


